package cn.yanghan.org.service.impl;

import cn.yanghan.org.domain.Department;
import cn.yanghan.org.domain.Employee;
import cn.yanghan.org.mapper.DepartmentMapper;
import cn.yanghan.org.mapper.EmployeeMapper;
import cn.yanghan.org.query.DepartmentQuery;
import cn.yanghan.org.service.IDepartmentService;
import cn.yanghan.org.service.IEmployeeService;
import cn.yanghan.org.utils.QueryResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class EmployeeServiceImpl implements IEmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> loadAll() {
        return employeeMapper.loadAll();
    }
}
